import serviceAxios from "@/utils/serviceAxios"

export const checkUsername = (params)=>{
	return serviceAxios({
		url:"/check/username",
		method:"get",
		params,
	});
};

export const createUser = (data)=>{
	return serviceAxios({
		url:"/user",
		method:"post",
		data,
	});
};


export const loginUser = (data)=>{
	return serviceAxios({
		url:"/login",
		method:"post",
		data,
	});
};

export const getUserInfo = (id)=>{
	return serviceAxios({
		url:"/user/"+id,
		method:"get",
	});
};

